package cn.itsource.rpms.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class RepairOrder extends BaseDomain {
    private String custormer;//客户名
    private String address;//客户地址
    private String car_num;//车牌号
    private Date create_time = new Date();//维修单生成时间
    private Integer opt_id;//维修人员
    private Long status = 2L;//维修单状态
    private Opt opt;

    public Opt getOpt() {
        return opt;
    }

    public void setOpt(Opt opt) {
        this.opt = opt;
    }

    @Override
    public String toString() {
        return "RepairOrder{" +
                "custormer='" + custormer + '\'' +
                ", address='" + address + '\'' +
                ", car_num='" + car_num + '\'' +
                ", create_time=" + create_time +
                ", opt_id=" + opt_id +
                ", status=" + status +
                '}';
    }

    public String getCustormer() {
        return custormer;
    }

    public void setCustormer(String custormer) {
        this.custormer = custormer;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCar_num() {
        return car_num;
    }

    public void setCar_num(String car_num) {
        this.car_num = car_num;
    }
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    public Date getCreate_time() {
        return create_time;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd")
    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Integer getOpt_id() {
        return opt_id;
    }

    public void setOpt_id(Integer opt_id) {
        this.opt_id = opt_id;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }
}

